'use strict'
// 注入 GROUP 变量，用于处理正式环境 collectSDK 路径
const ENV_GROUP = process.env.GROUP;

var inject = function(key) {
    var value = getSysConfig(key)
    if (value) {
        value = `${ENV_GROUP}.${value}`;
        var conf = {};
        conf[key] = value;
        setSysConfig(conf)
    }
}
if (ENV_GROUP) {
    inject('collectUrl')
}
